<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>员工</title>
    <%@include file="/static/js/common.jsp"%>
    <script src="/static/js/giftbill.js"></script>
    <script src="/static/plugins/echart/echarts.js"></script>
    <script>
    </script>
</head>
<body class="easyui-layout">
<div data-options="region:'east',iconCls:'icon-reload',split:true" style="width:40%;">
    <div id="main"   style="height:90%;width: 90%;margin-top: 5%;margin-left: 8%">
        <script type="text/javascript">

            // 基于准备好的dom，初始化echarts实例
            var myChart = echarts.init(document.getElementById('main'));
            var option = {
                tooltip : {
                    trigger: 'axis',
                    axisPointer : {            // 坐标轴指示器，坐标轴触发有效
                        type : 'shadow'        // 默认为直线，可选为：'line' | 'shadow'
                    }
                },
                legend: {
                    data:['兑换数量', '兑换所需积分', '兑换需要的积分']
                },
                grid: {
                    left: '3%',
                    right: '4%',
                    bottom: '3%',
                    containLabel: true
                },
                xAxis : [
                    {
                        type : 'value'
                    }
                ],
                yAxis : [
                    {
                        type : 'category',
                        axisTick : {show: false},
                        data : ['tracy','emily','lily','lucy']
                    }
                ],
                series : [
                    {
                        name:'兑换数量',
                        type:'bar',
                        label: {
                            normal: {
                                show: true,
                                position: 'inside'
                            }
                        },
                        data:[22, 1, 21, 1]
                    },
                    {
                        name:'兑换所需积分',
                        type:'bar',
                        stack: '总量',
                        label: {
                            normal: {
                                show: true
                            }
                        },
                        data:[11, 9, 12, 9]
                    },
                    {
                        name:'兑换需要的积分',
                        type:'bar',
                        stack: '总量',
                        label: {
                            normal: {
                                show: true,
                                position: 'left'
                            }
                        },
                        data:[-5, -9, -252, -9]
                    }
                ]
            };
            // 使用刚指定的配置项和数据显示图表。
            myChart.setOption(option);



        </script>
    </div>
</div>
<div data-options="region:'center',border:true" style="padding:5px;">
    <table id="gift_datagrid"></table>
</div>


<div id="gift_tb">
    <a class="easyui-linkbutton" data-cmd="reload" data-options="iconCls:'icon-reload',text:'刷新'"></a>
    开始日期:<input name="beginDate" class="easyui-datebox" id="unit">
    结束日期:<input name="endDate" class="easyui-datebox" id="integral">
    <input class="easyui-textbox" name="keyword" prompt="请输入兑换选项"/>
    <a class="easyui-linkbutton" data-cmd="queryForKey"  data-options="iconCls:'icon-search',text:'查询'"></a>
</div>
</body>
</html>
